#include<stdio.h>
int main(){

	int n;
	
	scanf("%d",&n);
	int arr[n+1];
	
	for (int i=1;i<=n;i++){
		scanf("%d",&arr[i]);
	}
	
	for (int j=n;j>0;j--){
		j != 1 ? printf("%d,",arr[j]) : printf("%d",arr[j]);
	}
	
	return 0;
}
